﻿using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Text;

namespace Infrastructure.Config
{
    public class ApplicationConfig
    {
        private static IConfiguration configuration { get; set; }
        public static void SetConfig(IConfiguration configuration)
        {
            ApplicationConfig.configuration = configuration;
        }
        public static IConfiguration GetConfig()
        {
            return configuration;
        }

        public static string GetValue(string key)
        {
            return configuration[key];
        }
    }
}
